﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Landscape.Vessel.Business.Entities
{
    public class UserMaster
    {
        public UserMaster()
        {
            //this.ID = -1;
            this.ID = Guid.Empty;
            this.Roles = new List<Role>();
            this.Vessels = new List<Vessel>();
        }

        public virtual Guid ID
        { get; set; }

        public virtual int StaffCode
        { get; set; }

        public virtual string FirstName
        { get; set; }

        public virtual string LastName
        { get; set; }

        public virtual string Salutation
        { get; set; }        

        public virtual bool IsTpUser
        { get; set; }

        public virtual string EMail
        { get; set; }

        public virtual string PhoneNumber
        { get; set; }

        public virtual bool IsSystemAdmin
        { get; set; }

        public virtual bool IsDisabled
        { get; set; }

        public virtual bool IsDeleted
        { get; set; }

        public virtual Guid CreatedBy
        { get; set; }

        public virtual DateTime CreatedDate
        { get; set; }

        public virtual Guid UpdatedBy
        { get; set; }

        public virtual DateTime UpdatedDate
        { get; set; }

        public virtual IList<Role> Roles
        { get; set; }

        public virtual UserIdentity Identity
        { get; set; }

        public virtual IList<Vessel> Vessels
        { get; set; }
    }
}
